package com.stedu.mall.common.service;

import com.stedu.mall.common.bean.Admin;
import com.stedu.mall.common.exception.SteduException;

import java.util.List;

public interface AdminService {
    Admin login(String username, String password) throws SteduException;
    boolean update(Admin admin);
    //添加
    boolean insert(Admin admin) throws SteduException;
    //修改
    boolean chgPwd(String oldPwd,String newPwd,Integer id) throws SteduException;
    //删除
    boolean delete(Integer id) throws SteduException;
    //根据id查询
    Admin selectById(Integer id);
    //查询所有
    List<Admin> selectAll();
    //重置密码
    boolean resetPassword(Integer id, String newPassword);
    //修改个人信息
    boolean updateInfo(Admin admin);



}
